package com.itheima.reggie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.reggie.domain.Category;
import org.springframework.stereotype.Repository;

import java.util.List;

//分类的持久层接口
@Repository
public interface CategoryMapper extends BaseMapper<Category> {

    //查询分类列表
    List<Category> findAll();

    //新增分类
    void save(Category category);

    //修改分类
    //void update(Category category);

    //删除分类
    void delete(Long id);
}
